<template>
  <div>
    <h3>演示 base-upload</h3>

    <BaseUpload :limit="2" multiple :on-exceed="handleExceed">
      <el-button>上传</el-button>
    </BaseUpload>
  </div>
</template>

<script lang="ts" setup>
import BaseUpload from '@/components/base-upload/index.vue'
import { ElMessage } from 'element-plus'

function handleExceed(files: File[], uploadFileList: any[]) {
  ElMessage.warning('超出限制了')
  console.log(files)
  console.log(uploadFileList)
}
</script>
